package com.example.service.impl;

import com.example.entity.StudentAnswer;
import com.example.entity.Subject;
import com.example.mapper.SubjectMapper;
import com.example.service.SubjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author： wzz
 * @date： 2021-11-02 22:06
 */

@Service
public class SubjectServiceImpl implements SubjectService {

    @Resource
    private SubjectMapper subjectMapper;

    @Override
    public Integer SubjectDelete(Subject subject) {
        return subjectMapper.SubjectDelete(subject);
    }

    @Override
    public Integer SubjectUpdate(Subject subject) {
        return subjectMapper.SubjectUpdate(subject);
    }

    @Override
    public int updateScore(String menu_topic, String questionNo, String studentNumber, int score) {
        return subjectMapper.updateScore(menu_topic,questionNo,studentNumber,score);
    }

    @Override
    public String getStem(StudentAnswer studentAnswer) {
        return subjectMapper.getStem(studentAnswer);
    }

    @Override
    public String getAnswer(StudentAnswer studentAnswer) {
        return subjectMapper.getAnswer(studentAnswer);
    }

    @Override
    public int importSubject(List<Subject> subjectList) {
        return subjectMapper.importSubject(subjectList);
    }


    @Override
    public List<Subject> hasContent(String book_name, String menu_topic) {
        return subjectMapper.hasContent(book_name,menu_topic);
    }


}
